package com.wx.mall.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljl
 * @since 2020-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pro_spu")
@ApiModel(value="Spu对象", description="")
public class Spu implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "SPU的ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "SPU货号")
    private String encode;

    @ApiModelProperty(value = "SPU名称")
    private String name;

    @ApiModelProperty(value = "副标题")
    private String caption;

    @ApiModelProperty(value = "品牌id")
    private Integer brandId;

    @ApiModelProperty(value = "分类ID数组 以；分割")
    private String categoryId;

    @ApiModelProperty(value = "规格参数模版id")
    private Integer templateId;

    @ApiModelProperty(value = "运费模版id")
    private Integer freightId;

    @ApiModelProperty(value = "SPU主图")
    private String image;

    @ApiModelProperty(value = "图片列表")
    private String images;

    @ApiModelProperty(value = "售后服务")
    private String service;

    @ApiModelProperty(value = "SPU介绍")
    private String introduction;

    @ApiModelProperty(value = "商品SPU详情")
    private String description;

    @ApiModelProperty(value = "参数列表  以key:value结构；分割的方式存储")
    private String para;

    @ApiModelProperty(value = "销量")
    private Integer sale;

    @ApiModelProperty(value = "评论数")
    private Integer comment;

    @ApiModelProperty(value = "是否上架（ 0 未上架  1上架  2 下架）")
    private Integer isMarketable;

    @ApiModelProperty(value = "是否启用规格（0 启用  1 未启用）")
    private Integer isEnableSpec;

    @ApiModelProperty(value = "是否删除（ 0 未删  1 已删）")
    private Integer isDelete;

    @ApiModelProperty(value = "审核状态（0 待审核  1 未通过  2 已审核）")
    private Integer status;


}
